making by_user work