use logging instead of print in init file