add command logging to the helper script