consolidated log in code