got rid of fragments and added support for splines