see https://scratch.mit.edu/discuss/topic/305574/?page=1#post-3162639 and https://scratch.mit.edu/discuss/topic/305574/?page=1#post-3167546