use beam align command at start of macro file. fix another naming error