make sure that everything is working

add code that should have been there.