added loggin for status