removing optmist dependency