validation and listing

basic validation and listing functions