added busy wait in init function to avoid nasty race condition