modified script to omit resources