added attachment system... there is a way i can speed it up, though