#50 impelement some more helper functions