file observer refactored

Signed-off-by: Christian Lüthold <biocodr@gmail.com>