refactor status handling from api and fix tests
version bump