commented out buffer check for now, added new lines at end of commands
as needed as well as some sleeps