slug computation finally works