fixing the -p => -sp flag