new way to log stuff and implementation in api