refactored system functions into server cli and command modules
refactored system functions into server cli and command modules