initial steps to separate rules and actions from the main monolithic file