removed some TODOs. write effect can take int or string