don't throw on 0 length input data; resolves #10