add script for parallel sampling