semi working, needs to have action decisions added