changed the server to work with regions