added Misc class for random generic methods that could be needed elsewhere