temp version to build policy parsing and checking, THIS VERSION WONT WORK!