refactoring(step 1): moved updating packages of a 
project from api to model
minor improvements