fixed hardcoded paths to preferences and bar app