add repo-level scripts for debugging in server and test modes