fixed: incorrect options.maxindex was passed
bumped version number to v0.1.2