added proper logging in setup