add support for multiple commands. Closes #1