change dependency classification
fix errors occurring in destructors
fix error with key_frame flag