enhanced slugging for all edge cases