added sparks lib