working import reducer script