added logging for testing