adding send flag to client