add mutex to draw operation; pwd