added debug option, will make commandlien argument later