improved library_runner