startup script for discern