extend logging in optimization with time and mem info, NOT DONE