attach bean constructor fns to beans object, which will be exported