fixes to sp