dont use conditional get middleware because of bug