added script that can extract parameters from filename