implement new API; bump version to 0.1.3