add isClient/isServer flags

fixes #58