fix for using obsolete function
add file local variables
add autoload magic comment