added area and namespace restriction support