working toward a standalone script