added auth key etc to controller