added stop as a flag
added a status flag