fixed error
added more server fxn