fix bug and add file types

Signed-off-by: Dmitry Konurov <dmitry.konurov@opensoftdev.ru>