implement the pre-bug fix and post-bug fix electron defns side by side for testing