added modified orchid lib