moved utils to new file and moved redirect into callback