added Linux hooks