fixing state / added destroy to resources in compute