fix confusing loggin