working on pref

Signed-off-by: strippat <strippato@gmail.co>