added logging to check argv