cleanup rails specific stuff