remove hard dependency on rails