swapped attach parameters arround to make more sense