methods for .obs-file writing