attempting to fix #71 - api commands added from a custom command are queued incorrectly