use default only if it is defined