added several compile handlers and tests (WIP)