more elegant solution to allow more spark methods to be added to the custom lib