options issue fixed. can now take both key and url