added setClass and trying to do permissions