several fixes. Some new commands