some optimizations on actor behaviour