api extending / fixing linux implementation code