helper script for supervisor