capfile and orders controller fix