OP-6 #Implementing callbacks and rewrite authorization system