bugfix for scratch communication