configuration and validation methid