implemented import compiling