add -o for recording
better error handling
1.1.0