security updates, also fixes #53, fixes #43