adds some flags for elements