bootstrap external function and temporary fixes