fix string format and context method