adding pseudo code for a terms script i want to write