added API-only support for a custom title
fixed some bug that I have not totally figured out yet