[add] some refactoring, package-build server commands with 'allowed' option