added common utils file
refactor scripts