making twitter element use tempfiles to make cleanup easier