BUG: move initialization of defaults