new script with finance related functions