initial registering; moved helper to util; fixed typo