fix import of library codes