fix "static does not exist" warning
fix deprecated option warning