cleanup of lib and extra data