Permissions

Further permissions updates and segment folder creation