fix package.json & move rules to a new folder