update to build method to output declarations.