fixed some parsing bugs, allowing no spaces after rules