cleaning up options in scripts