removed rails dependencies, cleaned up a bit