move out the sax-machine dependency