added debug mode flag to server and escape client handling in FFS