various fixed, adapted to new program.js arguments scheme