some updates to favourite program scripts
refactoring statdzen script