improve trace and options method impl.