add a promising method for handling default parameters and their validation