few changes to help reading perks from a config file