add some missing semicolons and make CREDENTIALS a const