This might be ready for rails engine