protect from spaces in path
finish implementation of http dispatcher