finished permissions stuff