made check_apis() work