Update:change directory or entities.