smaller and clean lib, all_processed api method works now