bashing this down
first attempt at a bash only solution