check permissions

@kentquirk can you have a look please