temporary modifications done to make it work on arduino, need to have a protocal though