adding permissions and data upload support