support returning keys for options