added pdos hook