api pack, cleanup