compile and loadSource