added server functionalities