try to give the script some structure