added logging, changed default file