only require keys if no env