compiler util and test, working