remove leading slashes from path
move deprecation warnings to own file
rename pai_footer to pai_foot