fix dependency cycle on ruby