detached head
fix server functions
delete safezones