some final scripts