WIP: automatization of compilation