allow custom client on main entry point