fix small problems in lib import