made memory usage accouting in tasks actually make sense