add leap support