added helper methods to server