cleanup & version check