starting to make the script more easily extensible