made a lot of changes to add minget