added config file and policy reading function