specs and cleanup