minor fixes after testing on the node terminal