backend for bills