switch to list append and remove suplicates in lib list/fix build type func