added some changes. added a patch

thanks to yogiquin for the patch