loading preflight_test function instead of piping to bash