remove making global inv agent in gui