small api code fix and new version