get rid of strong dependency of rails version