move shit to spectrum directive and add attrs to spec element