bug fix and refactoring/cleanup

bug: uriField was being wrongly set when accessing the settings
refactoring: optimize import statements