added pre and post processing for behaviour actions