added ability to run custom scripts