init mtrpy helper functions