cleanup firmware