added weight route
added handling for weight