added loggin and insecure end-point