fixed model loading, and routes not working