rough draft of starter agent logic