add back-end foundation for app