add old logger code