dynamic working for pies and bar, routes not working