frankencode cleanup