updated permissions & a few more args