refactored settings, translated api, added delay