allow middleware to be declare as string "class.func"