add --scan flag to scan for duration. closes #11