fix status file and input pipe