some changes to the LogController - not working yet