simplify spec/shared/allegro, fix client and api