logger take arg to force run in dev mode
error handeling for migration and pass -d to logger
pass 1 on error exit process
v0.13.10