added linter to the mix
separated the script in two