removed resourceT instance it caused weird error
fixed deadlocking and colour printing