working version with rocks added to the server side