silence logging and fix bug in once