added support for setup and teardown scripts