simplify compile task
move more logic into the compile task