simplifying code as mapPage.getValue() will always return an absolute path