remove files and log in helper