add checking for sunshine.js