add compiled handler and change attr