closes #40
issue #36 another fix with debug popup