updated to work as a meteor package