should we throw here or just use console.debug ?