added some debuging options