change to mask type identification
remove print calls
change type of model of user to permission
add templates