better integrated portsf library