finalized some permissions stuff