use locks on server to prevent multiple process operations at same time