Logging in and out boundary conditions
    but something very strange is going on