add rails support, add base reloading