bug fixes and instruction additions