trap's code, pushing to github for public consumption