merged with most recent deanna/natasha version and changed global_focus != 0 to work on linux