passport serialize-deser funcs + some middlewares