model layer for endpoints framework