recursivity working, fixed reference bug in server