adding compiler for runtime class swapping.