fixes public api to work without key