add slugging logic