making scripts work in development mode