added message handling for actors