added more features to email subject, added support for dynamic uid creation from output