make the code more readable
remove double arrows and make code more readable
run association functions on the last instance
add hooks
bump version to 0.5.2