fixed definition loading with path