got rid of open in server code