initial implementation of media dirs