added keepbest script