simpler tasks but not thread safe