added validate_interface to lib