fix pyramid scripts