misc fixes, add append and prepend alter commands