can purge this block entirely after implementing api endpoint