changed junk to test for junk command and aterm command