make it work on both sl5 and sl6