validations and task preparation