protocol: added 'flags add' command
fix compilation for 4.00