fixed the bs declarations to work with extern stuff