tookout callback related functions and delete callbacks using chan
added TODO to comment
got rid of useless var in struct
just moved prints in right places