fix import libraries
fix some adopt() errors
try to fix