added slashed and unslashed ways into the api
refactoring