remove debug and dead options