bug fixed.
name added to region. priority changed to application.
clean up.