Added not-authorized error report
Fixed with-module* functions