added awful windows support to plugin script