checks against null
putHandler redirect fix