testing rails specific setup
possibly fixed bug?
changed order to fix permission bug