adding compile task method to build process