added hook posibility
updated version