added baseurl as a config option