fixes to spl
more fixes to spl