moved some rest request binding methods into a .cc file to reduce compilation work required