support custom marker hook