working version without stackmob but custom backend