export this function to the closure, and call it also directly in `init`.