macro recording basically seems to work
fix bug