hacked together for initial test run