debug option added