Thanks for the suggestions.

I cleaned up the sloppy parts of the code and worked with the config fuses a bit, but i still had no luck. i finally gave in and added a external oscillator; i will revisit this when i have more time.