We need to see the "extrasettings" code in order to assist. If you are using a proper editor and have not created a BOM, then the problem rests in your included code, not the hook location. The hook as you probably already know selects the point of entry where your code will be eval'ed.
If for some (security reason -- only) you cannot post your code to receive global assistance you can use a private message.
What @Dave suggested is the correct method and there is nothing wrong with the hook locations.