split server side code into account settings, allow rules, methods, and publish rules