add get_perms, fix relative path, clean ups