main: read only once from stdin for status log