standardize special flags handling
convert InternalFlags class to Sys_Command
Merge branch 'internals-cmd' into dev

closes #489