working on full logic, config is done, in the middle of adding reduce