Thanks for the reply m8 - yeah using Picstart plus and the config bits were causing the problem - just changed the low voltage programming part and it runs.
Using 16F877 device- 4Mhz clock - programmed 16F877 with hex file from microchip website. 16F877 4MHZ 19200 Baud. Using CCS PCM ver 2.707 tryed both extra lines in code