more fixing of rails 3/4