parameter scans working with few minor bugs