compiles with exported functions