added helper functions to client