support arrays of functions for pre/postAuthentication