move to global dir and setup param validation
global dir