added permissions to read/write external and internal