added stderr output for client