implement config loader
impl access control by location prefix (fixed #3)