able to behave correctly for hello and exit bin programs. (read and write swi)