added rudimentary librefm support, closes #3