version error and cleanup