added rails support