added options for debug but not working