code for testing added
testing manual control through command line