unify the two load_buffer interfaces
unify the load_file implementations