added sw to talk to flash