agent control module fix logging bugs