build a work around for the race condition. fixes #1