add hook to read function
add hook to addsubview function