all useful utility code for ME only