separate file for validation
create lib dir