added c# script changes