added some cleaning up to the compile proccess