adding sparklemelt as an option, fixing random seeding