helpers to avoid warnings from ruby