env handling

handling of the flagged markers