add paths and constants for the mon functions
fix function renaming
moved everything to a module