delete explicit attribute references, write a cfg instead