wip zencoder refactored