extract user logic to user namespace