add __name__ validation