moved some additional functions to another script