added support for random generated serial