convert to standard perl package