fix fail statement, show rails mode on load