fix to call correct callback when netwrok error
fixing loggin thing in model
Merge branch 'dev' into preview