add interaction type to rest
bug fix