implemented pre and post cscripts for site commands