plog, plog_if and pcheck closes #121