change check_dependencies function from private to public for better integration