added file loggin, no more ideas