Prepare base libs
Clean up