minor bug fixes

Note that the signal traps are not functioning correctly. This notes
that until we can figure out whats wrong.
support multiple commands