psola: prepare function to be overriden for various implementations