added a loomer to handle threading issues,
made extensions global namespace