fixes for FreeBSD
add attribute escape sequences