handle subs in backend
handle subs in backend