"expression result unused" error, other bugs fixed

stupid, stupid, stupid…