added peter's changes to h autonomous, put in fix for ir