- added multi flag support. to be improved