updated script and include to make it compatible with latest SRL