updated builder to handle an empty top-line better. Closes #14