delattr seems to work,rewrite needs to be refined