fix app permissions by adding config file