added models and routes packages to lib