move function calls to the top of common bootstrap