split attr and wrapper script