minor changes to optknock script