added misc functions and methods