browser api works normally