add r folder
handle entity asEvent