seg fault fix
output to stdout when -out=null removed
typo fix