move define within check_lib