debugged Kobra a little bit