added activity log. updated worker to handle rails env