sets things up for rails