why don't you use the loadCheck middleware?