up to implementing the rails way