arg parsing
loggin and debugger