corrected parameter fetching of amc toolbox, removed old code