added -sp parameter, still wip