adding preferences layer