refactor packages (command, object, config, common)