added nolog option