adapted path helpers to rails conventions