added printfs
isServer